using Abp.AutoMapper;
using Mt.Site.Core.Taxonomys.Entities;
using System;
using System.ComponentModel.DataAnnotations;

namespace Mt.Site.Application.Taxonomys.Dto
{
    [AutoMapTo(typeof(TaxonomysItem))]
    public class CreateTaxonomyItemInput
    {
        [StringLength(TaxonomysItem.MaxDisplayNameLength)]
        [Required]
        public string DisplayName { get; set; }

        public string LocalDisplayName { get; set; }

        [StringLength(TaxonomysItem.MaxValueLength)]
        [Required]
        public string Value { get; set; }

        public int Norder { get; set; }
        [Required]
        public Guid TypeId { get; set; }

        public Guid? ParentId { get; set; }
        public bool IsActive { get; set; }

        [StringLength(TaxonomysItem.MaxCodeLength)]
        public string Code { get; set; }

        public bool IsBindItem { get; set; }


        [StringLength(TaxonomysItem.MaxPicLength)]
        public string Pic1 { get; set; }

        [StringLength(TaxonomysItem.MaxPicLength)]
        public string Pic2 { get; set; }

        [StringLength(TaxonomysItem.MaxLinkUrlLength)]
        public string LinkUrl { get; set; }
    }
}
